home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / libraries / triton.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  29KB  |  602 lines

  1. #ifndef LIBRARIES_TRITON_H
  2. #define LIBRARIES_TRITON_H
  3. /*
  4. ** triton.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/28/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for triton.h
  17. */
  18. #define TR_AppPtr ADDRESS
  19. #define TR_DimensionsPtr ADDRESS
  20. #define TR_MessagePtr ADDRESS
  21. #define TR_ProjectPtr ADDRESS
  22. /*
  23. ** End of StructPointer defines for triton.h
  24. */
  25.  
  26. #define TRITONNAME              "triton.library"
  27. #define TRITON10VERSION         1&
  28. #define TRITON11VERSION         2&
  29. #define TRITON12VERSION         3&
  30. #define TRITON13VERSION         4&
  31. #define TRITON14VERSION         5&
  32.  
  33.  
  34. /* ////////////////////////////////////////////////////////////////////// */
  35. /* ////////////////////////////////////////////////////////// Includes // */
  36. /* ////////////////////////////////////////////////////////////////////// */
  37.  
  38. #ifndef INTUI_V36_NAMES_ONLY
  39. #define INTUI_V36_NAMES_ONLY
  40. #endif
  41.  
  42. #ifndef EXEC_TYPES_H
  43. #include <exec/types.h>
  44. #endif
  45.  
  46. #ifndef INTUITION_INTUITIONBASE_H
  47. #include <intuition/intuitionbase.h>
  48. #endif
  49.  
  50. #ifndef INTUITION_INTUITION_H
  51. #include <intuition/intuition.h>
  52. #endif
  53.  
  54. #ifndef INTUITION_GADGETCLASS_H
  55. #include <intuition/gadgetclass.h>
  56. #endif
  57.  
  58. #ifndef INTUITION_IMAGECLASS_H
  59. #include <intuition/imageclass.h>
  60. #endif
  61.  
  62. #ifndef INTUITION_CLASSUSR_H
  63. #include <intuition/classusr.h>
  64. #endif
  65.  
  66. #ifndef GRAPHICS_GFX_H
  67. #include <graphics/gfx.h>
  68. #endif
  69.  
  70. #ifndef GRAPHICS_GFXBASE_H
  71. #include <graphics/gfxbase.h>
  72. #endif
  73.  
  74. #ifndef GRAPHICS_GFXMACROS_H
  75. #include <graphics/gfxmacros.h>
  76. #endif
  77.  
  78. #ifndef LIBRARIES_GADTOOLS_H
  79. #include <libraries/gadtools.h>
  80. #endif
  81.  
  82. #ifndef LIBRARIES_DISKFONT_H
  83. #include <libraries/diskfont.h>
  84. #endif
  85.  
  86. #ifndef UTILITY_TAGITEM_H
  87. #include <utility/tagitem.h>
  88. #endif
  89.  
  90. #ifndef WORKBENCH_STARTUP_H
  91. #include <workbench/startup.h>
  92. #endif
  93.  
  94. #ifndef WORKBENCH_WORKBENCH_H
  95. #include <workbench/workbench.h>
  96. #endif
  97.  
  98.  
  99. /* ////////////////////////////////////////////////////////////////////// */
  100. /* //////////////////////////////////////////////////////////// Macros // */
  101. /* ////////////////////////////////////////////////////////////////////// */
  102.  
  103. #ifndef TR_NOMACROS
  104. #include <libraries/triton.macros>
  105. #endif /* TR_NOMACROS */
  106.  
  107.  
  108.  
  109. /* ////////////////////////////////////////////////////////////////////// */
  110. /* //////////////////////////////////////////////// The Triton message // */
  111. /* ////////////////////////////////////////////////////////////////////// */
  112.  
  113. STRUCT TR_Message
  114.  
  115.   TR_ProjectPtr  trm_Project     /* The project which triggered the MESSAGE */
  116.   LONGINT        trm_ID          /* The object's ID (where appropriate) */
  117.   LONGINT        trm_Class       /* The Triton MESSAGE class */
  118.   LONGINT        trm_Data        /* The class-specific DATA */
  119.   LONGINT        trm_Code        /* Currently only used by TRMS_KEYPRESSED */
  120.   LONGINT        trm_Qualifier   /* IEQUALIFIERs */
  121.   LONGINT        trm_Seconds     /* \ Copy of system clock time (Only where */
  122.   LONGINT        trm_Micros      /* / available! If not set,  trm_Seconds is 0) */
  123.   TR_AppPtr      trm_App         /* The project's application */
  124. END STRUCT 
  125.  
  126. /* Message classes */
  127. #define TRMS_CLOSEWINDOW        1&  /* The window should be closed */
  128. #define TRMS_ERROR              2&  /* An error occured. Error code in trm_Data */
  129. #define TRMS_NEWVALUE           3&  /* Object's value has changed. New value in trm_Data */
  130. #define TRMS_ACTION             4&  /* Object has triggered an action */
  131. #define TRMS_ICONDROPPED        5&  /* Icon dropped over window (ID=0) or DropBox. AppMessage* in trm_Data */
  132. #define TRMS_KEYPRESSED         6&  /* Key pressed. trm_Data contains ASCII code,  trm_Code raw code and */
  133.                                     /* trm_Qualifier contains qualifiers */
  134. #define TRMS_HELP               7&  /* The user requested help for the specified ID */
  135. #define TRMS_DISKINSERTED       8&  /* A disk has been inserted into a drive */
  136. #define TRMS_DISKREMOVED        9&  /* A disk has been removed from a drive */
  137.  
  138.  
  139. /* ////////////////////////////////////////////////////////////////////// */
  140. /* //////////////////////////////////////////////// Triton error codes // */
  141. /* ////////////////////////////////////////////////////////////////////// */
  142.  
  143. #define TRER_OK                 0&        /* No error */
  144.  
  145. #define TRER_ALLOCMEM           1&        /* Not enough memory */
  146. #define TRER_OPENWINDOW         2&        /* Can't open window */
  147. #define TRER_WINDOWTOOBIG       3&        /* Window would be too big for screen */
  148. #define TRER_DRAWINFO           4&        /* Can't get screen's DrawInfo */
  149. #define TRER_OPENFONT           5&        /* Can't open font */
  150. #define TRER_CREATEMSGPORT      6&        /* Can't create message port */
  151. #define TRER_INSTALLOBJECT      7&        /* Can't create an object */
  152. #define TRER_CREATECLASS        8&        /* Can't create a class */
  153. #define TRER_NOLOCKPUBSCREEN    9&        /* Can't lock public screen */
  154. #define TRER_CREATEMENUS        12&       /* Error while creating the menus */
  155. #define TRER_GT_CREATECONTEXT   14&       /* Can't create gadget context */
  156.  
  157. #define TRER_MAXERRORNUM        15&       /* PRIVATE! */
  158.  
  159.  
  160. /* ////////////////////////////////////////////////////////////////////// */
  161. /* /////////////////////////////////////////////////// Object messages // */
  162. /* ////////////////////////////////////////////////////////////////////// */
  163.  
  164. #define TROM_ACTIVATE 23&                 /* Activate an object */
  165.  
  166.  
  167. /* ////////////////////////////////////////////////////////////////////// */
  168. /* ///////////////////////////////////////// Tags for TR_OpenProject() // */
  169. /* ////////////////////////////////////////////////////////////////////// */
  170.  
  171. /* Tag bases */
  172. #define TRTG_OAT              (TAG_USER+&H400)  /* Object attribute */
  173. #define TRTG_OBJ              (TAG_USER+&H100)  /* Object ID */
  174. #define TRTG_OAT2             (TAG_USER+&H80)   /* PRIVATE! */
  175. #define TRTG_PAT              (TAG_USER)        /* Project attribute */
  176.  
  177. /* Window/Project */
  178. #define TRWI_Title              (TRTG_PAT+&H01) /* STRPTR: The window title */
  179. #define TRWI_Flags              (TRTG_PAT+&H02) /* See below for window flags */
  180. #define TRWI_Underscore         (TRTG_PAT+&H03) /* BYTE *: The underscore for menu and gadget shortcuts */
  181. #define TRWI_Position           (TRTG_PAT+&H04) /* Window position,  see below */
  182. #define TRWI_CustomScreen       (TRTG_PAT+&H05) /* STRUCT Screen * */
  183. #define TRWI_PubScreen          (TRTG_PAT+&H06) /* STRUCT Screen *,  must have been locked! */
  184. #define TRWI_PubScreenName      (TRTG_PAT+&H07) /* ADDRESS,  Triton is doing the locking */
  185. #define TRWI_PropFontAttr       (TRTG_PAT+&H08) /* STRUCT TextAttr *: The proportional font */
  186. #define TRWI_FixedWidthFontAttr (TRTG_PAT+&H09) /* STRUCT TextAttr *: The fixed-width font */
  187. #define TRWI_Backfill           (TRTG_PAT+&H0A) /* The backfill type,  see below */
  188. #define TRWI_ID                 (TRTG_PAT+&H0B) /* ULONG: The window ID */
  189. #define TRWI_Dimensions         (TRTG_PAT+&H0C) /* STRUCT TR_Dimensions * */
  190. #define TRWI_ScreenTitle        (TRTG_PAT+&H0D) /* STRPTR: The screen title */
  191. #define TRWI_QuickHelp          (TRTG_PAT+&H0E) /* BOOL: Quick help active? */
  192.  
  193. /* Menus */
  194. #define TRMN_Title              (TRTG_PAT+&H65) /* STRPTR: Menu */
  195. #define TRMN_Item               (TRTG_PAT+&H66) /* STRPTR: Menu item */
  196. #define TRMN_Sub                (TRTG_PAT+&H67) /* STRPTR: Menu subitem */
  197. #define TRMN_Flags              (TRTG_PAT+&H68) /* See below for flags */
  198.  
  199. /* General object attributes */
  200. #define TRAT_ID               (TRTG_OAT2+&H16)  /* The object's/menu's ID */
  201. #define TRAT_Flags            (TRTG_OAT2+&H17)  /* The object's flags */
  202. #define TRAT_Value            (TRTG_OAT2+&H18)  /* The object's value */
  203. #define TRAT_Text             (TRTG_OAT2+&H19)  /* The object's text */
  204. #define TRAT_Disabled         (TRTG_OAT2+&H1A)  /* Disabled object? */
  205. #define TRAT_Backfill         (TRTG_OAT2+&H1B)  /* Backfill pattern */
  206. #define TRAT_MinWidth         (TRTG_OAT2+&H1C)  /* Minimum width */
  207. #define TRAT_MinHeight        (TRTG_OAT2+&H1D)  /* Minimum height */
  208.  
  209.  
  210. /* ////////////////////////////////////////////////////////////////////// */
  211. /* ////////////////////////////////////////////////////// Window flags // */
  212. /* ////////////////////////////////////////////////////////////////////// */
  213.  
  214. #define TRWF_BACKDROP           &H00000001&     /* Create a backdrop borderless window */
  215. #define TRWF_NODRAGBAR          &H00000002&     /* Don't use a dragbar */
  216. #define TRWF_NODEPTHGADGET      &H00000004&     /* Don't use a depth-gadget */
  217. #define TRWF_NOCLOSEGADGET      &H00000008&     /* Don't use a close-gadget */
  218. #define TRWF_NOACTIVATE         &H00000010&     /* Don't activate window */
  219. #define TRWF_NOESCCLOSE         &H00000020&     /* Don't send TRMS_CLOSEWINDOW when Esc is pressed */
  220. #define TRWF_NOPSCRFALLBACK     &H00000040&     /* Don't fall back onto default PubScreen */
  221. #define TRWF_NOZIPGADGET        &H00000080&     /* Don't use a zip-gadget */
  222. #define TRWF_ZIPCENTERTOP       &H00000100&     /* Center the zipped window on the title bar */
  223. #define TRWF_NOMINTEXTWIDTH     &H00000200&     /* Minimum window width not according to title text */
  224. #define TRWF_NOSIZEGADGET       &H00000400&     /* Don't use a sizing-gadget */
  225. #define TRWF_NOFONTFALLBACK     &H00000800&     /* Don't fall back to topaz.8 */
  226. #define TRWF_NODELZIP           &H00001000&     /* Don't zip the window when Del is pressed */
  227. #define TRWF_SIMPLEREFRESH      &H00002000&     /* *** OBSOLETE *** (V3+) */
  228. #define TRWF_ZIPTOCURRENTPOS    &H00004000&     /* Will zip the window at the current position (OS3.0+) */
  229. #define TRWF_APPWINDOW          &H00008000&     /* Create an AppWindow without using class_dropbox */
  230. #define TRWF_ACTIVATESTRGAD     &H00010000&     /* Activate the first string gadget after opening the window */
  231. #define TRWF_HELP               &H00020000&     /* Pressing <Help> will create a TRMS_HELP message (V4) */
  232. #define TRWF_SYSTEMACTION       &H00040000&     /* System status messages will be sent (V4) */
  233.  
  234.  
  235. /* ////////////////////////////////////////////////////////////////////// */
  236. /* //////////////////////////////////////////////////////// Menu flags // */
  237. /* ////////////////////////////////////////////////////////////////////// */
  238.  
  239. #define TRMF_CHECKIT            &H00000001&     /* Leave space for a checkmark */
  240. #define TRMF_CHECKED            &H00000002&     /* Check the item (includes TRMF_CHECKIT) */
  241. #define TRMF_DISABLED           &H00000004&     /* Ghost the menu/item */
  242.  
  243.  
  244. /* ////////////////////////////////////////////////////////////////////// */
  245. /* ////////////////////////////////////////////////// Window positions // */
  246. /* ////////////////////////////////////////////////////////////////////// */
  247.  
  248. #define TRWP_DEFAULT            0&              /* Let Triton choose a good position */
  249. #define TRWP_BELOWTITLEBAR      1&              /* Left side of screen,  below title bar */
  250. #define TRWP_CENTERTOP          1025&           /* Top of screen,  centered on the title bar */
  251. #define TRWP_TOPLEFTSCREEN      1026&           /* Top left corner of screen */
  252. #define TRWP_CENTERSCREEN       1027&           /* Centered on the screen */
  253. #define TRWP_CENTERDISPLAY      1028&           /* Centered on the currently displayed clip */
  254. #define TRWP_MOUSEPOINTER       1029&           /* Under the mouse pointer */
  255. #define TRWP_ABOVECOORDS        2049&           /* Above coordinates from the dimensions STRUCT */
  256. #define TRWP_BELOWCOORDS        2050&           /* Below coordinates from the dimensions STRUCT */
  257.  
  258.  
  259. /* ////////////////////////////////////////////////////////////////////// */
  260. /* //////////////////////////////////// Backfill types / System images // */
  261. /* ////////////////////////////////////////////////////////////////////// */
  262.  
  263. #define TRBF_WINDOWBACK         &H00000000&     /* Window backfill */
  264. #define TRBF_REQUESTERBACK      &H00000001&     /* Requester backfill */
  265.  
  266. #define TRBF_NONE               &H00000002&     /* No backfill (= Fill with BACKGROUNDPEN) */
  267. #define TRBF_SHINE              &H00000003&     /* Fill with SHINEPEN */
  268. #define TRBF_SHINE_SHADOW       &H00000004&     /* Fill with SHINEPEN + SHADOWPEN */
  269. #define TRBF_SHINE_FILL         &H00000005&     /* Fill with SHINEPEN + FILLPEN */
  270. #define TRBF_SHINE_BACKGROUND   &H00000006&     /* Fill with SHINEPEN + BACKGROUNDPEN */
  271. #define TRBF_SHADOW             &H00000007&     /* Fill with SHADOWPEN */
  272. #define TRBF_SHADOW_FILL        &H00000008&     /* Fill with SHADOWPEN + FILLPEN */
  273. #define TRBF_SHADOW_BACKGROUND  &H00000009&     /* Fill with SHADOWPEN + BACKGROUNDPEN */
  274. #define TRBF_FILL               &H0000000A&     /* Fill with FILLPEN */
  275. #define TRBF_FILL_BACKGROUND    &H0000000B&     /* Fill with FILLPEN + BACKGROUNDPEN */
  276.  
  277. #define TRSI_USBUTTONBACK       &H00010002&     /* Unselected button backfill */
  278. #define TRSI_SBUTTONBACK        &H00010003&     /* Selected button backfill */
  279.  
  280.  
  281. /* ////////////////////////////////////////////////////////////////////// */
  282. /* ////////////////////////////////////////////// Display Object flags // */
  283. /* ////////////////////////////////////////////////////////////////////// */
  284.  
  285. /* General flags */
  286. #define TROF_RAISED             &H00000001&     /* Raised object */
  287. #define TROF_HORIZ              &H00000002&     /* Horizontal object \ Works automatically */
  288. #define TROF_VERT               &H00000004&     /* Vertical object   / in groups */
  289. #define TROF_RIGHTALIGN         &H00000008&     /* Align object to the right border if available */
  290.  
  291. /* Text flags for different kinds of text-related objects */
  292. #define TRTX_NOUNDERSCORE       &H00000100&     /* Don't interpret underscores */
  293. #define TRTX_HIGHLIGHT          &H00000200&     /* Highlight text */
  294. #define TRTX_3D                 &H00000400&     /* 3D design */
  295. #define TRTX_BOLD               &H00000800&     /* Softstyle 'bold' */
  296. #define TRTX_TITLE              &H00001000&     /* A title (e.g. of a group) */
  297. #define TRTX_SELECTED           &H00002000&     /* PRIVATE! */
  298.  
  299.  
  300. /* ////////////////////////////////////////////////////////////////////// */
  301. /* ////////////////////////////////////////////////////// Menu entries // */
  302. /* ////////////////////////////////////////////////////////////////////// */
  303.  
  304. #define TRMN_BARLABEL           (-1&)           /* A barlabel instead of text */
  305.  
  306.  
  307. /* ////////////////////////////////////////////////////////////////////// */
  308. /* /////////////////////////////////////////// Tags for TR_CreateApp() // */
  309. /* ////////////////////////////////////////////////////////////////////// */
  310.  
  311. #define TRCA_Name               (TAG_USER+1)
  312. #define TRCA_LongName           (TAG_USER+2)
  313. #define TRCA_Info               (TAG_USER+3)
  314. #define TRCA_Version            (TAG_USER+4)
  315. #define TRCA_Release            (TAG_USER+5)
  316. #define TRCA_Date               (TAG_USER+6)
  317.  
  318.  
  319. /* ////////////////////////////////////////////////////////////////////// */
  320. /* ///////////////////////////////////////// Tags for TR_EasyRequest() // */
  321. /* ////////////////////////////////////////////////////////////////////// */
  322.  
  323. #define TREZ_ReqPos             (TAG_USER+1)
  324. #define TREZ_LockProject        (TAG_USER+2)
  325. #define TREZ_Return             (TAG_USER+3)
  326. #define TREZ_Title              (TAG_USER+4)
  327. #define TREZ_Activate           (TAG_USER+5)
  328.  
  329.  
  330. /* ////////////////////////////////////////////////////////////////////// */
  331. /* ///////////////////////////////////////// The Application Structure // */
  332. /* ////////////////////////////////////////////////////////////////////// */
  333.  
  334. STRUCT TR_App /* This structure is PRIVATE! */
  335.  
  336.   ADDRESS      tra_MemPool         /* The memory pool */
  337.   LONGINT      tra_BitMask         /* Bits to Wait() for. THIS FIELD IS NOT PRIVATE! */
  338.   LONGINT      tra_LastError       /* TRER code of last error */
  339.   ADDRESS      tra_Name            /* Unique name */
  340.   ADDRESS      tra_LongName        /* User-readable name */
  341.   ADDRESS      tra_Info            /* Info string */
  342.   ADDRESS      tra_Version         /* Version */
  343.   ADDRESS      tra_Release         /* Release */
  344.   ADDRESS      tra_Date            /* Compilation date */
  345.   MsgPortPtr   tra_AppPort         /* Application message port */
  346.   MsgPortPtr   tra_IDCMPPort       /* IDCMP message port */
  347.   ADDRESS      tra_Prefs           /* Pointer to Triton app prefs */
  348.   TR_ProjectPtr  tra_LastProject     /* Used for menu item linking */
  349.   InputEventPtr  tra_InputEvent      /* Used for RAWKEY conversion */
  350. END STRUCT 
  351.  
  352.  
  353. /* ////////////////////////////////////////////////////////////////////// */
  354. /* ////////////////////////////////////////// The Dimensions Structure // */
  355. /* ////////////////////////////////////////////////////////////////////// */
  356.  
  357. STRUCT TR_Dimensions
  358.  
  359.   SHORTINT                         trd_Left            /* Left */
  360.   SHORTINT                         trd_Top             /* Top */
  361.   SHORTINT                         trd_Width           /* Width */
  362.   SHORTINT                         trd_Height          /* Height */
  363.   SHORTINT                         trd_Left2           /* Left */
  364.   SHORTINT                         trd_Top2            /* Top */
  365.   SHORTINT                         trd_Width2          /* Width */
  366.   SHORTINT                         trd_Height2         /* Height */
  367.   SHORTINT                         trd_Zoomed          /* Window zoomed? */
  368.   STRING reserved SIZE 6                               /* For future expansions */
  369. END STRUCT 
  370.  
  371.  
  372. /* ////////////////////////////////////////////////////////////////////// */
  373. /* ///////////////////////////////////////////// The Project Structure // */
  374. /* ////////////////////////////////////////////////////////////////////// */
  375.  
  376. STRUCT TR_Project /* This structure is PRIVATE! */
  377.  
  378.   TR_AppPtr             trp_App                         /* Our application */
  379.   ScreenPtr             trp_Screen                      /* Our screen,  always valid */
  380.   LONGINT               trp_ScreenType                  /* Type of screen (WA_...Screen) */
  381.  
  382.   LONGINT               trp_ID                          /* The project's ID */
  383.  
  384.   ScreenPtr             trp_LockedPubScreen             /* Only valid if we're using a PubScreen */
  385.   ADDRESS               trp_ScreenTitle                 /* The screen title */
  386.  
  387.   WindowPtr             trp_Window                      /* The window */
  388.   AppWindowPtr          trp_AppWindow                   /* AppWindow for icon dropping */
  389.  
  390.   LONGINT               trp_IDCMPFlags                  /* The IDCMP flags */
  391.   LONGINT               trp_Flags                       /* Triton window flags */
  392.  
  393.   NewMenuPtr            trp_NewMenu                     /* The newmenu stucture built by Triton */
  394.   LONGINT               trp_NewMenuSize                 /* The number of menu items in the list */
  395.   MenuPtr               trp_Menu                        /* The menu structure */
  396.   SHORTINT              trp_NextSelect                  /* The next selected menu item */
  397.  
  398.   ADDRESS               trp_VisualInfo                  /* The VisualInfo of our window */
  399.   DrawInfoPtr           trp_DrawInfo                    /* The DrawInfo of the screen */
  400.   TR_DimensionsPtr      trp_UserDimensions              /* User-supplied dimensions */
  401.   TR_DimensionsPtr      trp_Dimensions                  /* Private dimensions */
  402.  
  403.   LONGINT               trp_WindowStdHeight             /* The standard height of the window */
  404.   LONGINT               trp_LeftBorder                  /* The width of the left window border */
  405.   LONGINT               trp_RightBorder                 /* The width of the right window border */
  406.   LONGINT               trp_TopBorder                   /* The height of the top window border */
  407.   LONGINT               trp_BottomBorder                /* The height of the bottom window border */
  408.   LONGINT               trp_InnerWidth                  /* The inner width of the window */
  409.   LONGINT               trp_InnerHeight                 /* The inner height of the window */
  410.   STRING trp_ZipDimensions SIZE 8                       /* The dimensions for the zipped window */
  411.   SHORTINT              trp_AspectFixing                /* Pixel aspect correction factor */
  412.  
  413.   MinList               trp_ObjectList                  /* The list of display objects */
  414.   MinList               trp_MenuList                    /* The list of menus */
  415.   MinList               trp_IDList                      /* The ID linking list (menus & objects) */
  416.   ADDRESS               trp_MemPool                     /* The memory pool for the lists */
  417.   SHORTINT              trp_HasObjects                  /* Do we have display objects? */
  418.  
  419.   TextAttrPtr           trp_PropAttr                    /* The proportional font attributes */
  420.   TextAttrPtr           trp_FixedWidthAttr              /* The fixed-width font attributes */
  421.   TextFontPtr           trp_PropFont                    /* The proportional font */
  422.   TextFontPtr           trp_FixedWidthFont              /* The fixed-width font */
  423.   SHORTINT              trp_OpenedPropFont              /* \ Have we opened the fonts ? */
  424.   SHORTINT              trp_OpenedFixedWidthFont        /* /                            */
  425.   SHORTINT              trp_TotalPropFontHeight         /* Height of prop font incl. underscore */
  426.  
  427.   LONGINT               trp_BackfillType                /* The backfill type */
  428.   HookPtr               trp_BackfillHook                /* The backfill hook */
  429.  
  430.   GadgetPtr             trp_GadToolsGadgetList          /* List of GadTools gadgets */
  431.   GadgetPtr             trp_PrevGadget                  /* Previous GadTools gadget */
  432.   NewGadgetPtr          trp_NewGadget                   /* GadTools NewGadget */
  433.  
  434.   RequesterPtr          trp_InvisibleRequest            /* The invisible blocking requester */
  435.   SHORTINT              trp_IsUserLocked                /* Project locked by the user? */
  436.  
  437.   LONGINT               trp_CurrentID                   /* The currently keyboard-selected ID */
  438.   SHORTINT              trp_IsShortcutDown              /* Shortcut key pressed? */
  439.   BYTE                  trp_Underscore                  /* The underscore character */
  440.  
  441.   SHORTINT              trp_EscClose                    /* Close window on Esc? */
  442.   SHORTINT              trp_DelZip                      /* Zip window on Del? */
  443.   SHORTINT              trp_PubScreenFallBack           /* Fall back onto default public screen? */
  444.   SHORTINT              trp_FontFallBack                /* Fall back to topaz.8? */
  445.  
  446.   SHORTINT              trp_OldWidth                    /* Old window width */
  447.   SHORTINT              trp_OldHeight                   /* Old window height */
  448.  
  449.   WindowPtr             trp_QuickHelpWindow             /* The QuickHelp window */
  450.   ADDRESS               trp_QuickHelpObject             /* Object FOR which help is popped up */
  451.   LONGINT               trp_TicksPassed                 /* IntuiTicks passed since last MouseMove */
  452. END STRUCT 
  453.  
  454.  
  455. /* ////////////////////////////////////////////////////////////////////// */
  456. /* ///////////////////////////// Default classes,  attributes and flags // */
  457. /* ////////////////////////////////////////////////////////////////////// */
  458.  
  459. /* The following code has been assembled automatically from the class
  460.    sources _and may therefore look somehow unstructured and chaotic :-) */
  461.  
  462. /* class_DisplayObject */
  463.  
  464. #define TROB_DisplayObject      (TRTG_OBJ+&H3C) /* A basic display object */
  465.  
  466. #define TRDO_QuickHelpString    (TRTG_OAT+&H1E3)
  467.  
  468. /* class_Group */
  469.  
  470. #define TRGR_Horiz              (TAG_USER+201)  /* Horizontal group */
  471. #define TRGR_Vert               (TAG_USER+202)  /* Vertical group */
  472. #define TRGR_End                (TRTG_OAT2+&H4B)/* End of a group */
  473.  
  474. #define TRGR_PROPSHARE          &H00000000&     /* Default: Divide objects proportionally */
  475. #define TRGR_EQUALSHARE         &H00000001&     /* Divide objects equally */
  476. #define TRGR_PROPSPACES         &H00000002&     /* Divide spaces proportionally */
  477. #define TRGR_ARRAY              &H00000004&     /* Top-level array group */
  478.  
  479. #define TRGR_ALIGN              &H00000008&     /* Align resizeable objects in secondary dimension */
  480. #define TRGR_CENTER             &H00000010&     /* Center unresizeable objects in secondary dimension */
  481.  
  482. #define TRGR_FIXHORIZ           &H00000020&     /* Don't allow horizontal resizing */
  483. #define TRGR_FIXVERT            &H00000040&     /* Don't allow vertical resizing */
  484. #define TRGR_INDEP              &H00000080&     /* Group is independant of surrounding array */
  485.  
  486. /* class_Space */
  487.  
  488. #define TROB_Space              (TRTG_OBJ+&H285)/* The spaces class */
  489.  
  490. #define TRST_NONE               1&              /* No space */
  491. #define TRST_SMALL              2&              /* Small space */
  492. #define TRST_NORMAL             3&              /* Normal space (default) */
  493. #define TRST_BIG                4&              /* Big space */
  494.  
  495. /* class_CheckBox */
  496.  
  497. #define TROB_CheckBox           (TRTG_OBJ+&H2F) /* A checkbox gadget */
  498.  
  499. /* class_Object */
  500.  
  501. #define TROB_Object             (TRTG_OBJ+&H3D) /* A rootclass object */
  502.  
  503. /* class_Cycle */
  504.  
  505. #define TROB_Cycle              (TRTG_OBJ+&H36) /* A cycle gadget */
  506.  
  507. #define TRCY_MX                 &H00010000&     /* Unfold the cycle gadget to a MX gadget */
  508. #define TRCY_RIGHTLABELS        &H00020000&     /* Put the labels to the right of a MX gadget */
  509.  
  510. /* class_DropBox */
  511.  
  512. #define TROB_DropBox            (TRTG_OBJ+&H38) /* An icon drop box */
  513.  
  514. /* class_Scroller */
  515.  
  516. #define TROB_Scroller           (TRTG_OBJ+&H35) /* A scroller gadget */
  517.  
  518. #define TRSC_Total              (TRTG_OAT+&H1E0)
  519. #define TRSC_Visible            (TRTG_OAT+&H1E1)
  520.  
  521. /* class_FrameBox */
  522.  
  523. #define TROB_FrameBox           (TRTG_OBJ+&H32) /* A framing box */
  524.  
  525. #define TRFB_GROUPING           &H00000001&     /* A grouping box */
  526. #define TRFB_FRAMING            &H00000002&     /* A framing box */
  527. #define TRFB_TEXT               &H00000004&     /* A text container */
  528.  
  529. /* class_Button */
  530.  
  531. #define TROB_Button             (TRTG_OBJ+&H31) /* A BOOPSI button gadget */
  532.  
  533. #define TRBU_RETURNOK           &H00010000&     /* <Return> answers the button */
  534. #define TRBU_ESCOK              &H00020000&     /* <Esc> answers the button */
  535. #define TRBU_SHIFTED            &H00040000&     /* Shifted shortcut only */
  536. #define TRBU_UNSHIFTED          &H00080000&     /* Unshifted shortcut only */
  537. #define TRBU_YRESIZE            &H00100000&     /* Button resizeable in Y direction */
  538. #define TRBT_TEXT               0&              /* Text button */
  539. #define TRBT_GETFILE            1&              /* GetFile button */
  540. #define TRBT_GETDRAWER          2&              /* GetDrawer button */
  541. #define TRBT_GETENTRY           3&              /* GetEntry button */
  542.  
  543. /* class_Line */
  544.  
  545. #define TROB_Line               (TRTG_OBJ+&H2D) /* A simple line */
  546.  
  547. /* class_Palette */
  548.  
  549. #define TROB_Palette            (TRTG_OBJ+&H33) /* A palette gadget */
  550.  
  551. /* class_Slider */
  552.  
  553. #define TROB_Slider             (TRTG_OBJ+&H34) /* A slider gadget */
  554.  
  555. #define TRSL_Min                (TRTG_OAT+&H1DE)
  556. #define TRSL_Max                (TRTG_OAT+&H1DF)
  557.  
  558. /* class_Progress */
  559.  
  560. #define TROB_Progress           (TRTG_OBJ+&H3A) /* A progress indicator */
  561.  
  562. /* class_Text */
  563.  
  564. #define TROB_Text               (TRTG_OBJ+&H30) /* A line of text */
  565.  
  566. #define TRTX_CLIPPED            &H00010000&     /* Text is clipped */
  567. /* class_Listview */
  568.  
  569. #define TROB_Listview           (TRTG_OBJ+&H39) /* A listview gadget */
  570.  
  571. #define TRLV_Top                (TRTG_OAT+&H1E2)
  572.  
  573. #define TRLV_READONLY           &H00010000&     /* A read-only list */
  574. #define TRLV_SELECT             &H00020000&     /* You may select an entry */
  575. #define TRLV_SHOWSELECTED       &H00040000&     /* Selected entry will be shown */
  576. #define TRLV_NOCURSORKEYS       &H00080000&     /* Don't use arrow keys */
  577. #define TRLV_NONUMPADKEYS       &H00100000&     /* Don't use numeric keypad keys */
  578. #define TRLV_FWFONT             &H00200000&     /* Use the fixed-width font */
  579. #define TRLV_NOGAP              &H00400000&     /* Don't leave a gap below the list */
  580.  
  581. /* class_Image */
  582.  
  583. #define TROB_Image              (TRTG_OBJ+&H3B) /* An image */
  584.  
  585. #define TRIM_BOOPSI             &H00010000&     /* Use a BOOPSI IClass image */
  586.  
  587. /* class_String */
  588.  
  589. #define TROB_String             (TRTG_OBJ+&H37) /* A string gadget */
  590.  
  591. #define TRST_INVISIBLE          &H00010000&     /* A password gadget -> invisible typing */
  592. #define TRST_NORETURNBROADCAST  &H00020000&     /* <Return> keys will not be broadcast to the window */
  593.  
  594. /* End of automatically assembled code */
  595.  
  596.  
  597. /* ////////////////////////////////////////////////////////////////////// */
  598. /* /////////////////////////////////////////////////////////// The End // */
  599. /* ////////////////////////////////////////////////////////////////////// */
  600.  
  601. #endif /* LIBRARIES_TRITON_H */
  602.